﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

using Data;
using EuphoricNation.Page;
using EuphoricNation.Util;

public partial class templates_CMS_CMS : EntityPage<CMS>
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CMS cms = this.FullPageInfo;

        if (cms != null)
        {
            H1.Text = cms.Heading;
            PageContent.Text = cms.Content;
            //Media.ContentID = cms.UniqueID;

            BreadcrumbContent.Text = cms.Name;
        }
        else
            Useful.RedirectTemporary("/");
    }
}
